package com.bdqn.service.impl;

import com.bdqn.entity.ShoppingCart;
import com.bdqn.mapper.ShoppingCartMapper;
import com.bdqn.param.requset.CartParam;
import com.bdqn.service.ShoppingCartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 购物车 服务实现类
 * </p>
 *
 * @author hunter
 * @since 2022-06-11
 */
@Service
public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, ShoppingCart> implements ShoppingCartService {

    @Autowired
    private ShoppingCartMapper shoppingCartMapper;

    @Override
    public boolean sub(CartParam cartParam) {
        return shoppingCartMapper.sub(cartParam);
    }

    @Override
    public boolean add(CartParam cartParam) {
        return shoppingCartMapper.add(cartParam);
    }
}
